import { useFunction } from "./utils";

const [link, linkWithText] = useFunction("/storage/mysql/");

export default [
  {
    text: "MySQL 基础",
    items: [
      linkWithText(),
      linkWithText("database"),
      linkWithText("table"),
      linkWithText("insert"),
      {
        text: "查询操作",
        items: [
          linkWithText("select"),
          linkWithText("group"),
          linkWithText("union"),
        ],
      },
      linkWithText("update"),
      linkWithText("delete"),
      linkWithText("alias"),
      linkWithText("lock"),
      linkWithText("transaction"),
      linkWithText("view"),
      linkWithText("trigger"),
      linkWithText("function"),
    ],
  },
  {
    text: "MySQL 高级",
    items: [linkWithText("storage-engine")],
  },
];
